var flot = {
	init: function() {
		this._test();
		this._flotTest();
	},

	_test: function() {
		console.log('hi');
	},

	_flotTest: function() {
		$(function () {
			var d1 = [];
			for (var i = 0; i < 14; i += 0.5)
				d1.push([i, Math.sin(i)]);

			var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];

			// a null signifies separate line segments
			var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];

			$.plot($("#iDivTest"), [ d2 ]);
		});
	}
}

flot.init();